import request from '../utils/request'

export function doCheckPhone (params) {
  return request.post('/user/docheckphone', params)
}

export function doSendMsgCode (params) {
  return request.post('/user/dosendmsgcode', params)
}

export function doCheckCode (params) {
  return request.post('/user/docheckcode', params)
}

export function doFinishRegister (params) {
  return request.post('/user/dofinishregister', params)
}

export function login (params) {
  return request.post('/user/login', params)
}

// 获取用户信息
export function userInfo (params) {
  return request.get('/user/info', { params })
}

//  修改密码
export function updatePassword (params) {
  return request.post('/user/updatePassword', params)
}
